package cn.com.duiba.millionaire.center.biz.service.impl;

import cn.com.duiba.millionaire.center.api.msg.SubmitAnswerMsg;
import cn.com.duiba.millionaire.center.biz.service.UnsubmitAnswerHanderService;
import cn.com.duiba.millionaire.center.biz.service.UserSelectionInfoService;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zzy on 2018/1/22.
 */
@Service
public class UnsubmitAnswerHanderServiceImpl extends AbstractAnswerHanderService implements UnsubmitAnswerHanderService {
    @Autowired
    private UserSelectionInfoService userSelectionInfoService;

    @Override
    void processMsgList(List<SubmitAnswerMsg> msgList) {
        // 记录用户本题答案：标记为未提交答案
        userSelectionInfoService.batchUpdate(msgList, false);
        processWrongAnswer(msgList);
    }
}
